﻿using System.ComponentModel;

namespace Sunlight.Dispatch.Tools {
    /// <summary>
    /// 接收到的报文PMS是否处理成功  失败是-1，成功=0
    /// </summary>
    public enum OperationType {
        接收成功 = 0,
        处理成功 = 1,
        处理失败 = 99,
        未知数据 = 100
    }

    /// <summary>
    /// 业务类型
    /// </summary>
    public enum BusinessType {
        入库 = 1,
        出库 = 2
    }

    /// <summary>
    /// 是否
    /// </summary>
    public enum YesOrNo {
        是 = 1,
        否 = 0
    }

    /// <summary>
    /// 是否调度方
    /// </summary>
    [Description("是否调度方")]
    public enum YesOrNoDispatch {
        是 = 1,
        否 = 0
    }

    /// <summary>
    /// 运行状态
    /// </summary>
    public enum RunStatus {
        启动 = 1,
        暂停 = 0
    }

    /// <summary>
    /// 是否
    /// </summary>
    public enum TimeGranlarity {
        年 = 4,
        月 = 3,
        周 = 2,
        日 = 1
    }
}
